#pragma once

#include <winsock2.h>
#include <stdio.h>

class CServerSocket
{
public:
    CServerSocket();
    ~CServerSocket();

public:
    bool DoInit();
    bool DoBind(const char* ip, short port = 6000);
    bool DoListen(int backlog = 15);
    bool DoAccept();

private:
    bool m_bInit;
    SOCKET m_ListenSocket;
};
